package com.yuwei.module_cash_desk.model

import com.bw.lib_common.entity.Res
import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.bw.lib_http.entity.CashDeskEntity
import com.bw.lib_http.entity.ChargeEntity
import com.yuwei.module_cash_desk.api.CashDeskApiService

/**
 * 登录接口的repo实例
 */

class CashDeskRepository : BaseRepository<CashDeskApiService>() {

    override fun createApiServer(): CashDeskApiService = OkHttpClientManager.retrofitInstance.create(
        CashDeskApiService::class.java)
    suspend fun getCashDesk(): Res<CashDeskEntity> = apiService.getCashDesk()
    suspend fun getChargeList(): Res<ChargeEntity> = apiService.getChargeList()
}
